package com.cloudkinto.service.invoice;

import com.cloudkinto.entity.InvoiceTitleDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.invoice.vo.InvoiceTitleAddReq;
import com.cloudkinto.service.invoice.vo.InvoiceTitleDetailRes;
import com.cloudkinto.service.invoice.vo.InvoiceTitleUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author hjy
 * @since 2021-07-13
 */
public interface InvoiceTitleService extends IService<InvoiceTitleDo> {

    SingleResult addInit();

    InvoiceTitleAddReq add(InvoiceTitleAddReq req, Long userId,Long companyId);

    SingleResult updateInit(Long id);

    InvoiceTitleAddReq update(InvoiceTitleUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    InvoiceTitleDetailRes detail(Long id);

    SingleResult pageInit();

    List<InvoiceTitleDetailRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    List<Map> selectInvoiceListInit(Long companyId);
}
